 /**
 * @copyright 2015 MM鉴定师- All Rights Reserved 
 */
/**
 * 登录接口 QQ:1614028320
 *
 * @return void  
 */
function Search(){
    var fm,cd=document,pd,q,pw,go,fa,fu,fp,fn='',fg=true;//true means get,false means post
	//if(!window.opener){setTimeout("window.location='http://seemobi.cn/';",1000);cd.getElementById("Status").innerHTML="进入页面错误";return;}
	//try{fm=cd.getElementById("QF");pd=window.opener.document;}catch(e){return;}
	//q=pd.getElementById('QF').elements['Q'].value;
	//go=String(pd.getElementById('QN').value);
	var uri=new UriQuery(location.search);
	go=String(uri.getQuery('QN')).toLowerCase();
	q=String(uri.getQuery('q'));
	if(!go)go='google';
	if(!q){
		q=Search.key['网页'][Math.ceil(Math.random()*10)];
	}
	if(go=='verycdmovie'){
		try{pd=window.opener.document;q=pd.getElementById('QF').elements['Q'].value;}catch(e){};
	}
	if(Search.uri[go]){
		if('string'==typeof(Search.uri[go])){
			window.location=Search.uri[go]+q;
		}
	}else{
		
	}
	/*fm.action=fa;
	if(!fg){fm.method='post';}
	fm.innerHTML=fn+'<input type="hidden" name="'+fu+'" value="'+un+'" />';
	fm.submit();*/
}
Search.key={
	'网页':['MP3','QQ','电影','音乐','游戏','小说','美女','图片','手机','汽车','旅游','鲜花','情人节'],
	'音乐':['披着羊皮的狼','不得不爱','美丽的神话','嘻唰唰',' 发如雪','夜曲','冬天快乐','笔记','童话'],
	'影视':['金刚','无极','神话','情癫大圣','杀破狼','艺伎回忆录','火影忍者','大长今','康熙来了'],
	'软件':['PP点点通','腾讯QQ','BT','POCO','eMule','五笔',' 拼音','金山词霸','e话通','网际快车'],
	'图片':['彩信','美女','人体写真','电影','花卉','漫画','游戏','明星','动漫','壁纸','爆笑','风景'],
	'小说':['诛仙','小兵传奇','邪神传说','惟我独仙','少年阿宾','猛龙过江','现代艳帝传奇','红楼梦'],
	'新闻':['春运','春节联欢晚会','两岸春节包机','赠台大熊猫','禽流感疫情','富豪榜','研究生考试'],
	'论坛':['火车票','NBA','姚明','福娃','美女','性骚扰','人体','网友自拍','偷拍','走光','娱乐八卦'],
	'游戏':['街头篮球','劲舞团','劲乐团','冒险岛','泡泡堂','魔兽世界','梦幻西游','QQ幻想','联众'],
	'Flash':['我不想说我是鸡','狂蓉你听着','三藏宝宝','恭喜发财','大话三国','一生有你','七里香'],
	'地图':['中关村','故宫','九寨沟','天安门','颐和园','黄山','泰山','布达拉宫','八达岭','西湖','天池'],
	'购物':['手机','数码相机','MP3播放器','笔记本',' 摄像头','掌上电脑','数码摄像机','iPod','GPS'],
	'商业':['化工','五金','机械','建材','工艺品','家居用品','电器','玩具','印刷','服装','纺织','音像'],
	'工具':['在线词典','天气预报','飞机航班','列车时刻','股票行情','外汇排价','手机位置','IP地址']
};

Search.nav={
	'网页':['Live','Google','百度','ASK','有道','搜狗','Alexa'],
	'音乐':['百度MP3','百度歌词',' SoGua音乐','SoGua歌词','爱问MP3','搜狗MP3','中搜MP3'],
	'影视':['VeryCD电骡资源','狗狗影视','天天BT下载','优酷视频','百度影视','Yahoo! Video'],
	'软件':['华军软件园','天空软件站','SoftDown','霏凡软件','驱动之家','电脑之家'],
	'图片':['Google图片','百度图片','有道图片','爱问图片','搜狗图片'],
	'小说':['起点中文网','小说阅读网','小说网','新浪读书','龙源期刊'],
	'新闻':['Google新闻','百度新闻','爱问新闻','搜狗新闻','中搜新闻'],
	'博客':['谷歌博客','百度博客','有道博客','中搜论坛'],
	'游戏':['搜游','狗狗游戏','新浪游戏','手机游戏','掌机游戏','17173游戏'],
	'Flash':['百度Flash','中搜Flash','TOM Flash'],
	'地图':['百度地图','搜狗地图','Mapbar'],
	'商业':['阿里巴巴公司库','阿里巴巴供应信息','阿里巴巴求购信息','阿里巴巴商业资讯'],
	'工具':['在线词典','百科知识','天气预报','飞机航班','列车时刻','股票行情','外汇排价','手机位置','IP地址','域名信息']
};
Search.data={
};
//search.UN=[['google']];
Search.subnav={
        'Live':'live',
	'Google':'google',
	'百度':'baidu',
	'ASK':'yahoo',
	'有道':'youdao',
	'搜狗':'sogou',
	'alexa':'alexa',
	'百度MP3':'mp3baidu',
	'百度歌词':'lyricbaidu',
	'SoGua音乐':'soguamuisc',
	'SoGua歌词':'lyricsogua',
	'爱问MP3':'mp3iask',
	'搜狗MP3':'mp3sogou',
	'中搜MP3':'zhongsmp3',
	'雅虎Flash':'yahooflash',
	'百度Flash':'baiduflash',
	'中搜Flash':'zhongsouflash',
	'TOM Flash':'tomflash',
	'SoGua Flash':'soguaflash',
	'电驴资源':'verycdmovie',
	'狗狗影视':'btmoive',
	'天天BT下载':'ttbtmoive',
	'优酷视频':'iaskmoive',
	'百度影视':'baidumoive',
	'Yahoo! Video':'yahoovideo',
	'华军软件园':'onlinedown',
	'天空软件站':'skycn',
	'SoftDown':'digdig',
	'霏凡软件':'softdown',
	'驱动之家':'chinaz',
	'电脑之家':'pchome',
	'硅谷动力':'enetd',
	'太平洋软件':'pconlines',
	'太平洋驱动':'pconlined',
	'驱动之家':'mydrivers',
	'Google图片':'googlephoto',
	'百度图片':'baiduphoto',
	'有道图片':'yahoophoto',
	'爱问图片':'iaskphoto',
	'中搜图片':'zhongsouphoto',
	'起点中文网':'cmfu',
	'小说阅读网':'readnovel',
	'小说网':'hjsm',
	'新浪读书':'goldnets',
	'龙源期刊':'oklink',
	'Google新闻':'googlenews',
	'百度新闻':'baidunews',
	'爱问新闻':'iasknews',
	'搜狗新闻':'sogounews',
	'中搜新闻':'zhongsounews',
	'谷歌博客':'chinabbs',
	'百度博客':'qihoo',
	'有道博客':'teein',
	'中搜论坛':'zhongsoubbs',
	'搜游'	:'souyo',
	'狗狗游戏':'sinagame',
	'新浪游戏':'sinagamen',
	'手机游戏':'sinagamed',
	'掌机游戏':'sinagamei',
	'17173游戏':'g17173',
	'17173游戏下载':'g17173d',
	'太平洋游戏网':'sogou',
	'百度地图':'baidumap',
	'搜狗地图':'sogoumap',
	'中商购物':'zhongsshop',
	'当当':'dangdang',
	'卓越':'joyo',
	'搜狗购物':'sogoushop',
	'8848购物':'s8848',
	'易趣':'ebay',
	'淘宝':'taobao',
	'阿里巴巴公司库':'alibabaco',
	'阿里巴巴供应信息':'alibabasale',
	'阿里巴巴求购信息':'alibababuy',
	'阿里巴巴商业资讯':'alibababiz',
	'搜狐商机企业':'sohutrade',
	'新浪企业黄页':'sinatrade',
	'中搜行业':'zhongstrade',
	'在线词典':'dictionary',
	'天气预报':'weather',
	'飞机航班':'plane',
	'列车时刻':'train',
	'股票行情':'stock',
	'外汇排价':'fexchange',
	'手机位置':'mobile',
	'IP地址':'ip',
	'域名信息':'domain',
	'百科知识':'baike',
	'Mapbar':'mapbar'
};
//array(uri,queryname,others)
Search.uri={
        'live':'http://cnweb.search.live.com/results.aspx?q=',
	'google':'http://google.so.yeah.la/search?hl=zh-CN&inlang=zh-CN&ie=GB2312&oe=GB2312&q=',
	'baidu'	:'http://202.108.22.43/baidu?word=',
	'yahoo'	:'http://www.ask.com/web?q=',
	'youdao'	:'http://www.youdao.com/search?q=',
	'sogou'	:'http://sogou.so.yeah.la/websearch/corp/cup/cnnic_sogou.jsp?page=1&align=left&width=520&leftmargin=5&pid=cnnic2&cpc=SOGOU&query=',
	'alexa'	:'http://www.alexa.com/search?q=',
	'mp3sogou'	:'http://mp3.sogou.com/music.so?pf=&as=&st=&ac=1&class=1&p=40030200&dp=1&_asf=mp3.sogou.com&_ast=1232588270&w=02009900&query=',
	'mp3iask'	:'http://m.iask.com/g?ie=gb&k=',
	'lyricsogua':'http://search.sogua.com/lyric.asp?key=',
	'soguamuisc':'http://search.sogua.com/search.asp?key=',
	'lyricbaidu':'http://mp3.baidu.com/m?f=ms&tn=baidump3lyric&ct=150994944&lf=2&rn=10&word=',
	'mp3baidu'	:'http://mp3.baidu.com/m?f=ms&tn=baidump3&ct=134217728&lf=&rn=&word=',
	'verycdmovie':'http://search.verycd.com/query/',
	'btmoive'	:'http://www.gougou.com/search?search=',
	'ttbtmoive'	:'http://www.ttbt.cn/search.asp?action=true&k=',
	'iaskmoive'	:'http://so.youku.com/search_video/q_',
	'baidumoive':'http://video.baidu.com/v?ct=301989888&rn=20&pn=0&db=0&s=0&fbl=1024&word=',
	'yahoovideo':'http://video.search.yahoo.com/search/video?toggle=1&ei=GB2312&p=',
	'onlinedown':'http://search2.onlinedown.net/search.asp?Keyword=',
	'skycn'		:'http://www.skycn.com/search.php?sor=00&get=indate&az=2&ss_name=',
	'digdig'	:'http://soft.yeah.la/search/',
	'softdown'	:'http://search.crsky.com/search.asp?sType=ResName&action=s&imageField.x=34&imageField.y=20&keyword=',
	'chinaz'	:'http://so.mydrivers.com/drivers/',
	'pchome'	:'http://www.xdowns.com/tag.asp?act=topic&f=index&keyword=',
	'mydrivers'	:'http://so.mydrivers.com/drivers.aspx?q=',
	'googlephoto':'http://google.so.yeah.la/images?oe=UTF-8&hl=zh-CN&client=aff-avalanche&forid=1&q=',
	'baiduphoto':'http://image.baidu.com/i?tn=baiduimage&ct=201326592&cl=2&lm=-1&pv=&word=',
	'yahoophoto':'http://image.youdao.com/search?&ue=utf8&keyfrom=image.index&q=',
	'iaskphoto'	:'http://p.iask.com/p?k=',
	'zhongsouphoto':'http://pic.sogou.com/pics?&mode=1&di=2&w=05009900&_asf=pic.sogou.com&_ast=1232590479&query=',
	'cmfu'		:'http://sosu.qidian.com/search.aspx?t=zh&k=',
	'readnovel'	:'http://google.so.yeah.la/search?hl=zh-CN&inlang=zh-CN&newwindow=1&client=aff-readnovel&channel=firstpage&hs=aPp&affdom=readnovel.com&q=site%3Areadnovel.com+',
	'hjsm'		:'http://www.xiaoshuo.com/jsp/booksearch.jsp?qkind=000&qtype=1&qcontent=',
	'goldnets'	:'http://vip.book.sina.com.cn/s.php?&s_type=&x=1&y=7&k=',
	'oklink'	:'http://lnlib.vip.qikan.com/So.aspx?m=1&i=1&e=http%3A%2F%2Flnlib.vip.qikan.com%2FArticle.aspx&j=http%3A%2F%2Flnlib.vip.qikan.com%2FMag.aspx&k=',
	'googlenews':'http://google.so.yeah.la/news?hl=zh-CN&ned=cn&ie=GB2312&q=',
	'baidunews'	:'http://news.baidu.com/ns?content=%C8%AB%CE%C4%CB%D1%CB%F7&cl=2&ct=0&rn=30&tn=news&word=',
	'yahoonews'	:'http://xinwen.yahoo.com.cn/search?pid=200523_1006&p=',
	'iasknews'	:'http://so7.126.ah.cn/n?k=',
	'sogounews'	:'http://news.sogou.com/news?query=',
	'zhongsounews':'http://z.zhongsou.com/n?w=',
	'xinhuanet'	:'http://search.xinhuanet.com/search/searchnews.jsp?sw=',
	'chinabbs'	:'http://google.so.yeah.la/blogsearch?hl=zh-CN&ie=UTF-8&btnG=%E6%90%9C%E7%B4%A2%E5%8D%9A%E5%AE%A2&lr=&q=',
	'qihoo'		:'http://blogsearch.baidu.com/s?tn=baidublog&bsm=0&ct=2097152&cl=3&wd=',
	'zhongsoubbs':'http://bbs.zhongsou.com/b?w=',
	'teein'		:'http://blog.youdao.com/search?&ue=utf8&keyfrom=blog.index&q=',
	'g17173'	:'http://search.17173.com/news.jsp?keyword=',
	'g17173d'	:'http://search.17173.com/download.jsp?old_word=17173&keyword=',
	'sinagamei'	:'http://google.so.yeah.la/custom?sitesearch=cngba.com&q=',
	'sinagamed'	:'http://so.gamezero.cn/gamesearch.php?keyword=',
	'sinagamen'	:'http://search2.games.sina.com.cn/c.php?&n=0&k=',
	'sinagame'	:'http://game.gougou.com/search?&restype=1&id=0&search=',
	'souyo'		:'http://www.souyo.com/exec/search?kt=2&k=',
	'baidumap'	:'http://ditu.baidu.com/m?ct=10&word=',
	'sogoumap'	:'http://map.sogou.com/#city=%u5168%u56FD&lq=',
	'yahooflash':'http://music.yahoo.com.cn/search.html?mimetype=flash&pid=200523_1006&p=',
	'baiduflash':'http://mp3.baidu.com/m?rn=&tn=baidump3&ct=134217728&lm=6&word=',
	'zhongsouflash'	:'http://flash.zhongsou.com/zsflash.cgi?word=',
	'tomflash'	:'http://flash.ent.tom.com/flash_list.php?action=Search&stype=Title&keyword=',
	'soguaflash':'http://search2.sogua.com/search/flash_search.asp?key=',
	'baidumap'	:'http://ditu.baidu.com/m?ct=10&word=',
	'ebay'		:'http://search.ebay.com.cn/',
	'taobao'	:'http://search1.taobao.com/browse/search_auction.htm?o=and&mc=0&n=40&!et=1141719180&ss=ends&s=0&ct=50&_ps=commend&q=',
	'dangdang'	:'http://211.100.16.156/dangdang.dll?mode=1050&key=',
	'joyo'		:'http://www.joyo.com/ProdSearch/prodsearch.asp?uid=qwssa7oi0qu5ug9q7wggmsqsm&vname=',
	'sogoushop'	:'http://shopping.sogou.com/web?query=',
	's8848'		:'http://go.8848.com/search.dll?uid=265&key=',
	'zhongsshop':'http://www.chinaec.com/SearchEngine/?type=2&key=',
	'alibabaco'	:'http://search.china.alibaba.com/search/company_search.htm?cnalibaba=comsearch&keywords=',
	'alibabasale':'http://search.china.alibaba.com/search/offer_search.htm?cnalibaba=salesearch&tracelog=PO_searchsell_search&keywords=',
	'alibababuy':'http://search.china.alibaba.com/search/search.htm?cnalibaba=buysearch&tracelog=PO_searchbuy_search&keywords=',
	'alibababiz':'http://info.china.alibaba.com/news/search?do=1&cnalibaba=newsearch&keywords=',
	'pconlined'	:'http://dlc.pconline.com.cn/search.jsp?DLTypeId=2&SearchType=1&keyword=',
	'pconlines'	:'http://dlc.pconline.com.cn/search.jsp?DLTypeId=1&SearchType=1&keyword=',
	'enetd'		:'http://download.enet.com.cn/search.php?mode=&platformid=1&keyword=',
	'zhongsmp3'	:'http://mp3.zhongsou.com/zsmp3.cgi?word=',
	'mapbar'	:'http://search.mapbar.com/result.jsp?typestr=0&City=%B1%B1%BE%A9%CA%D0&raster=0&query=',
	'dictionary':'http://cb.kingsoft.com/search?t=word&lang=gb2312&s=',
	'zhongstrade':'http://hc360.zhongsou.com/indpage.cgi?mt=2&webid=hc&word=',
	'weather'	:'http://google.so.yeah.la/search?hl=zh-CN&newwindow=1&client=aff-cs-360se&hs=PDB&q=天气+',
	'fexchange'	:'http://www.boc.cn/sourcedb/whpj/?',
	'mobile'	:'http://google.so.yeah.la/search?client=aff-cs-360se&ie=utf-8&oe=UTF-8&hl=zh-CN&q=',
	'ip'		:'http://www.ip138.com/ips.asp?ip=',
	'domain'	:'http://alexa.chinaz.com/?domain=',
	'baike'	:'http://baike.baidu.com/list-php/dispose/searchword.php?word=',
	'stock'		:'http://google.so.yeah.la/search?hl=zh-CN&newwindow=1&client=aff-cs-360se&hs=1iq&q=',
	'train'		:'http://www.huoche.com.cn/chaxun/resultz.asp?txtchezhan=',
	'sohutrade'	:'http://search.b2b.sohu.com/corpsearch.jsp?opt=enterprise&key_word=',
	'sinatrade'	:'http://yp.sina.net/cgi-bin/search/mem_search.cgi?key=',
	'plane'		:'http://www.goldenholiday.com/?'
};
function UriQuery(str){
	try{this._query=(str||location.search);}catch(ex){throw ex;};
	this.getQuery=function(name){
		return UriQuery.getQuery(name,this._query);
	}
};
UriQuery.getQuery=function(name,str){
	return (new RegExp("(\\?|\\&)" 
	+ name + "=([^&]*)").test(str)) ? 
	RegExp.$2:null;
};
